// @ts-ignore
import {NATIVE} from "cc/env"

/**
 * @author : 乔磊磊
 * @ide    : WebStorm
 * @date   : 2025/2/21 星期五 08:11
 * @desc   :
 */
export function keepScreenOn(on: boolean) {
    if (NATIVE) {
        // @ts-ignore
        jsb.Device.setKeepScreenOn(on)
    }
}
